package com.zuowei.ycy.user.domain;

import android.os.Parcel;
import android.os.Parcelable;


public class BusinessSortInfo implements Parcelable {


    //区分是否是该类的最后一个
    private boolean isLast = false;
    private int type;

    private String goods_id;
    private String goods_name;
    private String goods_price;
    private String goods_picture;
    private String sales;
    private String g_t_name;

    private int number=0;


    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getType() {
        return type;
    }



    public void setType(int type) {
        this.type = type;
    }

    public boolean isLast() {
        return isLast;
    }

    public void setIsLast(boolean isLast) {
        this.isLast = isLast;
    }


    public void setGoods_id(String goods_id) {
        this.goods_id = goods_id;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public void setGoods_price(String goods_price) {
        this.goods_price = goods_price;
    }

    public void setGoods_picture(String goods_picture) {
        this.goods_picture = goods_picture;
    }

    public void setSales(String sales) {
        this.sales = sales;
    }

    public void setG_t_name(String g_t_name) {
        this.g_t_name = g_t_name;
    }

    public String getGoods_id() {
        return goods_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public String getGoods_price() {
        return goods_price;
    }

    public String getGoods_picture() {
        return goods_picture;
    }

    public String getSales() {
        return sales;
    }

    public String getG_t_name() {
        return g_t_name;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeByte(isLast ? (byte) 1 : (byte) 0);
        dest.writeInt(this.type);
        dest.writeString(this.goods_id);
        dest.writeString(this.goods_name);
        dest.writeString(this.goods_price);
        dest.writeString(this.goods_picture);
        dest.writeString(this.sales);
        dest.writeString(this.g_t_name);
        dest.writeInt(this.number);
    }

    public BusinessSortInfo() {
    }

    protected BusinessSortInfo(Parcel in) {
        this.isLast = in.readByte() != 0;
        this.type = in.readInt();
        this.goods_id = in.readString();
        this.goods_name = in.readString();
        this.goods_price = in.readString();
        this.goods_picture = in.readString();
        this.sales = in.readString();
        this.g_t_name = in.readString();
        this.number = in.readInt();
    }

    public static final Creator<BusinessSortInfo> CREATOR = new Creator<BusinessSortInfo>() {
        public BusinessSortInfo createFromParcel(Parcel source) {
            return new BusinessSortInfo(source);
        }

        public BusinessSortInfo[] newArray(int size) {
            return new BusinessSortInfo[size];
        }
    };
}
